home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / ts-toc.tip < prev    next >
Text File  |  1993-09-15  |  1KB  |  47 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 12.4.3, p. II-128.
  16. % Original source in file "par3.TEX", starting line 1023.
  17. \wlog{L: "ts-toc.tip" ["par3.TEX," l. 1023, p. II-128]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{toc-mac.tip}
  20. \def\EntryIntotoc #1#2#3#4{% 
  21.     \par
  22.     \ifcase #1
  23.         \bigskip
  24.     \or
  25.         \bigskip
  26.     \else
  27.         \relax
  28.     \fi
  29.     \ifcase #1
  30.         \GenTocEntry{0}{0pt}{20pt}{20pt}{30pt}% 
  31.             {0pt}{5pt}{0.5in}{#2}{#3}{\rm}{#4}
  32.     \or
  33.         \GenTocEntry{1}{0pt}{40pt}{40pt}{30pt}% 
  34.             {0pt}{10pt}{0.5in}{#2}{#3}{\bf}{#4}
  35.     \or
  36.         \GenTocEntry{2}{10pt}{50pt}{50pt}{30pt}% 
  37.             {0pt}{5pt}{0.5in}{#2}{#3}{\rm}{#4}
  38.     \or
  39.         \GenTocEntry{#1}{20pt}{60pt}{60pt}{30pt}% 
  40.             {0pt}{5pt}{0.5in}{#2}{#3}{\rm}{#4}
  41.     \or
  42.     \else
  43.         \errmessage{\string\EntryIntotoc: no level #1 subdivision
  44.             in this series.}
  45.     \fi
  46. }
  47.